#include "tube.hpp"

util::tube::tube(double width, util::colour c, util::tube::end_type t, bool open) :
  colour(c),
  end(t),
  open(open)
{}

void util::tube::add_point(const util::point& p) {
  points.push_back(p);
}

util::point& util::tube::get_point(unsigned int i) {
  return points.at(i);
}

unsigned int util::tube::count() const {
  return points.size();
}

void util::tube::render() const {
  
}
